package de.fzi.kasma.learner.data;

import de.fzi.kasma.learner.path.PNode;

public class Data  {


	private PNode sourceNode;
	private PNode targetNode;
	private Label label;

	public PNode getSourceNode() {
		return sourceNode;
	}


	public void setSourceNode(PNode sourceNode) {
		this.sourceNode = sourceNode;
	}


	public PNode getTargetNode() {
		return targetNode;
	}


	public void setTargetNode(PNode targetNode) {
		this.targetNode = targetNode;
	}


	public void setLabel(Label label) {
		this.label = label;
	}


	public Label getLabel() {
		return label;
	}
	
	public String toString() {
		return sourceNode.toString()+ " "
		        +targetNode.toString()+ " "
		        + label.toString() ;
	}


	public void setSourceNode(String str) {

		PNode pn = new PNode(str);
		setSourceNode(pn);		
	}
	
	public void setTargetNode(String str) {

		PNode pn = new PNode(str);
		setTargetNode(pn);
	}
	
}
